const express = require('express')
const app = express()
var http = require('http').Server(app);
var io = require('socket.io')(http);

app.get('/', ( req, res ) => {
    res.sendFile(`${__dirname}/index.html`)
})

// usernames which are currently connected to the chat
var usernames = {};

// rooms which are currently available in chat
var rooms = ['room1', 'room2', 'room3'];

io.on('connection', function (socket) {
    console.log("it's connected!!!");
});

app.get('/about', (req, res) => {
    res.sendFile(`${__dirname}/about.html`)
})
http.listen(3000, () => {
    console.log('Listening on port 3000!')
})